.\" roar_simple_play.3:

.TH "roar_stream_add_data" "3" "July 2008" "RoarAudio" "System Manager's Manual: RoarAuido"

.SH NAME
roar_stream_add_data \- Adds data to a stream's input buffer using the controll connection

.SH SYNOPSIS

#include <roaraudio.h>

int roar_stream_add_data(struct roar_connection * con, struct roar_stream * s, char * data, size_t len);

.SH "DESCRIPTION"
This adds data to the input buffer of a stream. It's like doing some thing like this:

 write(stream_fh, data, len);

but uses the controll channel to add the data.


.SH "PARAMETERS"
.TP
\fBcon\fR
The connection to the server.

.TP
\fBs\fR
The stream to add data to it's input buffer.

.TP
\fBdata\fR
The data to add to the buffer.

.TP
\fBlen\fR
The length of the data to be added.

.SH "RETURN VALUE"
On success these calls return 0.  On error, \-1 is returned.

.SH "EXAMPLES"
FIXME

.SH "BUGS"
This call doesn't work with the current roard. The server does not use all of the buffer size and
complains about unterruns.

.SH "SEE ALSO"
\fBwrite\fR(2),
\fBlibroar\fR(7),
\fBRoarAudio\fR(7).

.\" ll
